<template>
  <div style="padding: 10px">
    <p>设置 props 属性，可设置 value, label, disabled 取值</p>
    <d-radio
      v-model="value"
      :options="options"
      :props="{ label: 'name', value: 'id', disabled: 'isDis' }"></d-radio>
  </div>
</template>
<script setup lang="ts">
  import { ref } from 'vue'
  const value = ref(1)
  const options = ref([
    { name: '选项1', id: 1 },
    { name: '选项2', id: 2 },
    { name: '选项2', id: 3, isDis: true }
  ])
</script>
